<template>
  <div>
    <div class="card_div">
      <div class="card_item" v-for="(item,key) in list" :key="key">
        <Card style="width: 100%;height: 100%;">
          <p slot="title">{{item.title}}</p>
          <div slot="extra">
            <Icon type="md-star" :size="24"/>
          </div>
          <img src="https://xuan-1256944348.cos.ap-beijing.myqcloud.com/img/left.jpg" style="width: 100%;height:140px;">
        </Card>
      </div>
    </div>
    <div class="paging">
      <Page :total="100" :show-total="true" :show-elevator="true" :show-sizer="true"/>
    </div>
  </div>
</template>

<script>
  export default {
    name: "blog",
    data() {
      return {
        list: [
          {title: 'springboot 学习之路1'},
          {title: 'springboot 学习之路2'},
          {title: 'springboot 学习之路3'},
          {title: 'springboot 学习之路4'},
          {title: 'springboot 学习之路5'},
          {title: 'springboot 学习之路6'},
          {title: 'springboot 学习之路7'},
          {title: 'springboot 学习之路8'},
          {title: 'springboot 学习之路9'}]
      }
    }
  }
</script>

<style scoped>
  .card_div {
    width: 95%;
    /*height: 750px;*/
    margin: 0 auto;
    /*display: grid;*/
    /*grid-template-columns: 1fr 1fr 1fr;*/
    /*grid-template-rows: 1fr 1fr 1fr;*/
    /*grid-row-gap: 20px;*/
    /*grid-column-gap: 20px;*/
    display: flex;
    justify-content: space-around;
    flex-direction: row;
    flex-flow: wrap;

  }

  .paging {
    width: 70%;
    text-align: center;
    margin: 0px auto;
  }

  .card_item {
    width: 30%;
    margin-top: 25px;
  }
</style>
